<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      th:replace="fragments/layout(title='菜谱管理-编辑',jsPaths='/static/js/food/menu/sample/add.js')">
<div class="right" th:fragment="right">
    <!--面包屑-->
    <div class="breadcrumb layui-bg-gray">
                <span class="layui-breadcrumb" lay-separator=">">
                    <a th:href="@{/}">首页</a>
                     <a href="/foodManage">菜谱管理</a>
                <a href="/foodSample">留样记录</a>
                    <a><cite>编辑</cite></a>
                </span>
    </div>

    <!--主体内容区-->
    <div class="form-content layui-container">
        <form class="layui-form" th:action="@{/foodSample/update}" method="post">
            <input type="hidden" name="id" th:value="${foodSampleModel.id}">
            <div class="layui-form-item">
                <label class="layui-form-label must">菜名</label>
                <div class="layui-input-block">
                    <input type="text" name="foodName" maxlength="10" lay-verify="required"
                           th:value="${foodSampleModel.foodName}"  placeholder="请输入菜名"
                           autocomplete="off" class="layui-input">
                </div>
            </div>
           <!-- <div class="layui-form-item">
                <label class="layui-form-label must">留样人</label>
                <div class="layui-input-block">
                    <input type="text" name="sampleUser" maxlength="10" lay-verify="required"
                           th:value="${foodSampleModel.sampleUser}" placeholder="请输入留样人"
                           autocomplete="off" class="layui-input">
                </div>
            </div>-->
            <div class="layui-form-item" style="margin-left: 47px;">
                <div class="layui-row">
                    <div class="layui-col-md1 label must">
                        <br/><br/>菜品图片
                    </div>
                    <div class="layui-input-block">
                        <div class="layui-upload">
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" th:src="@{'/storage/files/'+${foodSampleModel.foodPhoto}}"
                                     id="img1">
                                <input type="hidden" name="foodPhoto" class="hiddenIpt"
                                       th:value="${foodSampleModel.foodPhoto}"  lay-verify="required">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button class="layui-btn  layui-btn-normal" lay-submit lay-filter="submitBtn">保存</button>
                    <a href="/foodSample" class="layui-btn layui-btn-primary">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
</html>